#pragma warning disable 108
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using Cephei;
using Cephei.Core;
using Cephei.Core.Generic;
using Microsoft.FSharp.Core;
namespace Cephei.QL.Math.Statistics
{
    /// <summary> 
	/// ! It can accumulate a set of data and return statistics (e.g: mean, variance, skewness, kurtosis, error estimation, etc.)  \warning high moments are numerically unstable for high average/standardDeviation ratios.
	/// </summary>
    [Guid ("902478F1-47B9-4914-88BA-892525DE6E70"),ComVisible(true)]
	public interface IIncrementalStatistics 
	{
		///////////////////////////////////////////////////////////////
        // Methods
        //
        /// <summary> 
		/// 
		/// </summary>
		 IIncrementalStatistics Add(Double value, Microsoft.FSharp.Core.FSharpOption<Double> weight);
        /// <summary> 
		/// 
		/// </summary>
		 Double DownsideDeviation {get;}
        /// <summary> 
		/// 
		/// </summary>
		 Double DownsideVariance {get;}
        /// <summary> 
		/// 
		/// </summary>
		 Double ErrorEstimate {get;}
        /// <summary> 
		/// 
		/// </summary>
		 Double Kurtosis {get;}
        /// <summary> 
		/// 
		/// </summary>
		 Double Max {get;}
        /// <summary> 
		/// 
		/// </summary>
		 Double Mean {get;}
        /// <summary> 
		/// 
		/// </summary>
		 Double Min {get;}
        /// <summary> 
		/// 
		/// </summary>
		 IIncrementalStatistics Reset {get;}
        /// <summary> 
		/// 
		/// </summary>
		 UInt64 Samples {get;}
        /// <summary> 
		/// 
		/// </summary>
		 Double Skewness {get;}
        /// <summary> 
		/// 
		/// </summary>
		 Double StandardDeviation {get;}
        /// <summary> 
		/// 
		/// </summary>
		 Double Variance {get;}
        /// <summary> 
		/// 
		/// </summary>
		 Double WeightSum {get;}
    }   

    /// <summary> 
	/// ! It can accumulate a set of data and return statistics (e.g: mean, variance, skewness, kurtosis, error estimation, etc.)  \warning high moments are numerically unstable for high average/standardDeviation ratios. Factory
	/// </summary>
   	[ComVisible(true)]
    public interface IIncrementalStatistics_Factory 
    {
        ///////////////////////////////////////////////////////////////
        // Factory methods
        //
        /// <summary> 
		/// 
		/// </summary>
	    IIncrementalStatistics Create ();
    }
}

